package com.fjc.service;

import com.alibaba.fastjson.JSONObject;
import com.fjc.domain.ResultObject;
import com.fjc.domain.SysUser;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;
import java.util.Set;

/**
 * Created by fjc on 2018/9/24.
 */
public interface SysUserService {
    ResultObject login(String username, String password, boolean rememberMe, HttpServletRequest request);

    SysUser findUserByUsername(String username);

    Set<Map> findUserRoleByUsername(String username);

    Set<Map> findRolePermissionByRole(Set<Map> roles);

    ResultObject getNavPermissions();

    ResultObject getLoginLog(Integer page,Integer limit);

    ResultObject getUsersInfo(Integer page,Integer limit);

    ResultObject delUsersInfo(Integer id);

    ResultObject saveUser(SysUser sysUser);

    ResultObject getUserPermissions(Integer id);

    ResultObject updatePermissionsByUserId(JSONObject object);
}
